package org.zkoss.zktc.unittest;

import java.util.List;

import org.junit.Assert;
import org.junit.Test;
import org.openqa.selenium.Keys;
import org.zkoss.zktc.core.junit.TestCaseBase;
import org.zkoss.zktc.core.widget.Widget;
import org.zkoss.zktc.core.widget.WidgetDriver;

public class TestSandbox extends TestCaseBase{

	protected String getTestCaseUrl(){
		return "http://www.zkoss.org/zksandbox/";
	}
	
	@Test
	public void testMenuClick(){
		WidgetDriver driver = getDriver();
		navigate(getTestCaseUrl());
		
		Widget itemList = findWidget("$itemList");

		List<Widget> items = itemList.findWidgets("@listitem");
		
		int size = items.size();
		for(int i=1;i<size;i++){
			Widget item = items.get(i);
			item.click(1, 10000);
		}
		
		
	}
	
	
}
